JS 與 Node.js 的執行環境異同


Posted by YongChenSu on 2020-12-06

JS 與 Node.js 的執行環境異同

  • 瀏覽器是 JS 的執行環境 (runtime),而電腦的 cli 是 node.js 的執行環境。
  • document.querySelector 則是在瀏覽器上 JS 可以用的元素。
  • FS (file system) 則是 cli 上讓 node.js 可執行的指令,可以讀檔、寫檔。
  • console.log() 則是兩者都有提供。

參考資源


#程式導師實驗計畫 #前端







Related Posts

CSS 常用語法 (Cascading Style Sheets)

CSS 常用語法 (Cascading Style Sheets)

[筆記] Linux管理、Shell script 簡易範例

[筆記] Linux管理、Shell script 簡易範例

Demystifying Stubs in IT: A Comprehensive Exploration of IT Stubs

Demystifying Stubs in IT: A Comprehensive Exploration of IT Stubs


Comments